import json

import requests

def 取号记录查询():
    with open('cookie.txt', 'r', encoding='utf-8') as f:
        headers = json.load(f)


    params = {
        'ClassName': 'com.hyysoft.smart.action.call.CallGetNumRecAction.GetCallNumRecList',
        'DB_Conn': 'SMARTJH',
        'hall_id': '520321',
    }

    data = {
        'getnum_time': '2025-06-01 ~ 2025-06-30',
        'date_query': 'getnum_time',
        'page': '1',
        'rows': '900000',
        'pageindex': '1',
        'ispage': '1',
        'pagesize': '20',
    }

    response = requests.post(
        'http://59.215.208.54:91/sysaction.do',
        params=params,
        headers=headers,
        data=data,
        verify=False,
    ).json()
    print(response)
    # with open('re0_result.txt', 'a', encoding='utf-8') as f:
    #     f.write(response)
    for item in response['data']:
        print(item)
取号记录查询()
